PowerTCP Emulation for .NET CF
Data Constructor(Byte[],Int32,Int32,Encoding)
See Also  Send comments on this topic.
Dart.Common Namespace > Data Class > Data Constructor : Data Constructor(Byte[],Int32,Int32,Encoding)




buffer
The buffer holding byte data values.
offset
The number of offset bytes where the data starts.
count
The number of bytes with data values.
encoding
The encoding type to use.
Creates a Data object using the specified encoding.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer, _
   ByVal encoding As Encoding _
)
Visual Basic (Usage)Copy Code
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim encoding As Encoding
 
Dim instance As New Data(buffer, offset, count, encoding)
C# 
public Data( 
   byte[] buffer,
   int offset,
   int count,
   Encoding encoding
)
Managed Extensions for C++ 
public: Data( 
   byte[]* buffer,
   int offset,
   int count,
   Encoding* encoding
)
C++/CLI 
public:
Data( 
   array<byte>^ buffer,
   int offset,
   int count,
   Encoding^ encoding
)

Parameters

buffer
The buffer holding byte data values.
offset
The number of offset bytes where the data starts.
count
The number of bytes with data values.
encoding
The encoding type to use.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.